home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
moon_patrol.swf
/
scripts
/
frame_25
/
PlaceObject2_75_12
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2011-01-13
|
1KB
|
53 lines
onClipEvent(enterFrame){
setProperty(this, _X, _X + richtung);
if(0 < richtung and 650 < _X)
{
removeMovieClip(_parent._name);
}
if(richtung < 0 and _X < -50)
{
removeMovieClip(_parent._name);
}
i = 21;
while(i < 32)
{
if(this.hittest(eval("_parent.patrolshot2" + i)) and _name ne "hubschrauber")
{
if(_currentframe < 10)
{
removeMovieClip("_parent.patrolshot2" + i);
gotoAndPlay(10);
}
if(_currentframe == 30)
{
removeMovieClip("_parent.patrolshot2" + i);
gotoAndPlay(31);
}
}
i++;
}
if(getProperty(_parent.patrol, _X) < _X + 5 and _X - 5 < getProperty(_parent.patrol, _X) and _name ne "hubschrauber" and shotable ne "no" and hasshot)
{
hasshot = false;
_root.hubshotsound.start(0,1);
_parent.hubshot.duplicateMovieClip("hubshot" + _parent.e,_parent.e);
removeMovieClip("_parent.hubshot" + (_parent.e + 1));
setProperty("_parent.hubshot" + _parent.e, _X, _X);
setProperty("_parent.hubshot" + _parent.e, _Y, _Y + 10);
_parent.e = _parent.e + 1;
}
if(222 < _parent.e)
{
_parent.e = 200;
}
if(_currentframe >= 50)
{
if(this.hittest(_parent.patrol))
{
_root.scroll = false;
_root.gotoAndStop(35);
_root.patrol.gotoAndStop(13);
}
}
}